package com.ruoyi.app.service.impl;

import com.ruoyi.app.domain.AppAssociations;
import com.ruoyi.app.mapper.AppAssociationsMapper;
import com.ruoyi.app.service.IAppAssociationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 协会管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-03
 */
@Service
public class AppAssociationsServiceImpl implements IAppAssociationsService
{
    @Autowired
    private AppAssociationsMapper appAssociationsMapper;

    /**
     * 查询协会管理
     * 
     * @param id 协会管理主键
     * @return 协会管理
     */
    @Override
    public AppAssociations selectAppAssociationsById(Long id)
    {
        return appAssociationsMapper.selectAppAssociationsById(id);
    }

    /**
     * 查询协会管理列表
     * 
     * @param appAssociations 协会管理
     * @return 协会管理
     */
    @Override
    public List<AppAssociations> selectAppAssociationsList(AppAssociations appAssociations)
    {
        return appAssociationsMapper.selectAppAssociationsList(appAssociations);
    }

    /**
     * 新增协会管理
     * 
     * @param appAssociations 协会管理
     * @return 结果
     */
    @Override
    public int insertAppAssociations(AppAssociations appAssociations)
    {
        return appAssociationsMapper.insertAppAssociations(appAssociations);
    }

    /**
     * 修改协会管理
     * 
     * @param appAssociations 协会管理
     * @return 结果
     */
    @Override
    public int updateAppAssociations(AppAssociations appAssociations)
    {
        return appAssociationsMapper.updateAppAssociations(appAssociations);
    }

    /**
     * 批量删除协会管理
     * 
     * @param ids 需要删除的协会管理主键
     * @return 结果
     */
    @Override
    public int deleteAppAssociationsByIds(Long[] ids)
    {
        return appAssociationsMapper.deleteAppAssociationsByIds(ids);
    }

    /**
     * 删除协会管理信息
     * 
     * @param id 协会管理主键
     * @return 结果
     */
    @Override
    public int deleteAppAssociationsById(Long id)
    {
        return appAssociationsMapper.deleteAppAssociationsById(id);
    }
}
